package dsa;

import java.util.Scanner;

public class ChouJiang {
	public static void choujian(){
		if (DengLu.ll) {
			System.out.println("[会员系统>>抽奖]");
			System.out.println("请输入你的会员卡号：");
			Scanner jdd = new Scanner(System.in);
			int cj = jdd.nextInt();
			
			int[] sjs = new int[5];
			int i = 0;
			System.out.print("本日的幸运数字为：");
			for (i = 0; i < sjs.length; i++) {
				sjs[i] = (int)(Math.random()* (ZhuCe.max - ZhuCe.min)) + ZhuCe.min;
				System.out.print(sjs[i] + ",");
			}
			for (i = 0; i < sjs.length; i++) {
				if (ZhuCe.kahao == sjs[i]) {
					System.out.println("恭喜中奖！");
					break;
				}
			}
			if (i == sjs.length) {
				System.out.println();
				System.out.println("很遗憾，今天不是你的幸运日！");
			}
		} else {
			System.out.println("请先注册登录！");
			String asc = Sj.sf();
			if ("n".equals(asc)) {
				System.out.println("***************************");
				System.out.println("系统已退出，谢谢使用！");
			} else if ("y".equals(asc)) {
				ZhuCe.zc();
			

			}
		}
	}
}
